package com.crane.oss.sys.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.crane.oss.sys.bean.request.role.AddPartyRoleRequest;
import com.crane.oss.sys.bean.request.role.QueryPartyRoleRequest;
import com.crane.oss.sys.bean.request.role.UpdatePartyRoleRequest;
import com.crane.oss.sys.bean.resp.PartyRoleBean;

/**
 * 机构对应角色
 *
 * @author bealon
 * @email ccsu123456@qq.com
 * @date 2019年01月04日 14时54分46秒
 */
public interface PartyRoleService {

    PartyRoleBean queryPartyRole(Long id);

    IPage<PartyRoleBean> queryList(QueryPartyRoleRequest request);

    int save(AddPartyRoleRequest request);

    int update(UpdatePartyRoleRequest request);

    int delete(Long id);

    int deleteByRoleId(Long roleId);
}
